home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / metkit / treedlg.h < prev    next >
C/C++ Source or Header  |  1997-06-07  |  1KB  |  53 lines

  1. //    Copyright (C) 1996, 1997 Meta Four Software.  All rights reserved.
  2. //
  3. //    Catalog tree display sample code
  4. //
  5. //! rev="$Id: treedlg.h,v 1.3 1997/05/27 00:06:26 jcw Rel $"
  6.  
  7. /////////////////////////////////////////////////////////////////////////////
  8.  
  9. class CTreeDialog : public CDialog
  10. {
  11. // Construction
  12. public:
  13.     CTreeDialog (CFile& file_);
  14.  
  15. // Dialog Data
  16.     //{{AFX_DATA(CTreeDialog)
  17.     enum { IDD = IDD_TREE_DIALOG };
  18.     CListCtrl    m_fileList;
  19.     CTreeCtrl    m_dirTree;
  20.     //}}AFX_DATA
  21.  
  22.  
  23. // Overrides
  24.     // ClassWizard generated virtual function overrides
  25.     //{{AFX_VIRTUAL(CTreeDialog)
  26.     protected:
  27.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  28.     //}}AFX_VIRTUAL
  29.  
  30. // Implementation
  31. protected:
  32.     virtual void OnCancel();
  33.     virtual void PostNcDestroy();
  34.  
  35.     // Generated message map functions
  36.     //{{AFX_MSG(CTreeDialog)
  37.     virtual BOOL OnInitDialog();
  38.     afx_msg void OnSize(UINT nType, int cx, int cy);
  39.     afx_msg void OnSelchangedDirTree(NMHDR* pNMHDR, LRESULT* pResult);
  40.     //}}AFX_MSG
  41.     DECLARE_MESSAGE_MAP()
  42.  
  43. private:
  44.     void RecalcLayout();
  45.     void SetupDirTree();
  46.  
  47.     c4_Storage _storage;
  48.     c4_View _dirs;
  49.     CPtrArray _treeHandles;
  50. };
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53.